/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#include "Manager.h"
/*#include "Bmp.h"
#include "Gif.h"
#include "Jpeg.h"
#include "Twin.h"
#include <vector>
#include <safe_new.h>

namespace liba
{
namespace pictureformat
{

PictureFormat * Manager::create_format_but_not_twin(const filesystem::String & name)
{
	Bmp * bmpf = new Bmp( name );
	if( bmpf->colors() )
		return bmpf;
	delete bmpf; bmpf = 0;

	Gif * giff = new Gif( name );
	if( giff->colors() )
		return giff;
	delete giff; giff = 0;

	Jpeg * jpegf = new Jpeg( name );
	if( jpegf->colors() )
		return jpegf;
	delete jpegf; jpegf = 0;

	return 0;
}

PictureFormat * Manager::create_format(const filesystem::String & name)
{
	Twin * twinf = new Twin( name );
	if( twinf->colors() )
		return twinf;
	delete twinf; twinf = 0;

	return create_format_but_not_twin( name );
}

} // namespace pictureformat
} // namespace liba
*/


